<template>
    <div>
      <p>作用域插槽-子组件</p>
      <slot :sonName="myName">这是默认的内容</slot>
    </div>
  </template>
  
  <script setup>
  import { ref } from 'vue'
  const myName = ref('tom')
  </script>
  